package com.ruoyi.common.enums;

/**
 * 用户状态
 *
 * @author ruoyi
 */
public enum DisposeStatus {
    // 处置状态（1未处置，2已处置，3处置中）
    WCZ(1L, "未处置"),
    CZZ(2L, "处置中"),
    YCZ(3L, "已处置");

    private final Long code;
    private final String name;

    public static String getNameByCode(Long code){
        for (DisposeStatus disposeStatus : DisposeStatus.values()) {
            if (code.equals(disposeStatus.code)){
                return disposeStatus.name;
            }
        }
        return "";
    }

    DisposeStatus(Long code, String info) {
        this.code = code;
        this.name = info;
    }

    public Long getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
